import ERP_CONST from '@/const/erp'

export function getOptions(clcd) {
  return ERP_CONST[clcd]
}

export function fmtClcd(clcd, value) {
  const desc = ERP_CONST[clcd]
  if (desc) {
    return desc[value] || value
  }
  return value
}
